<template>
  <div id="billDetails">
    <h1
      style="line-height: 20px; display: flex; font-size: 28px"
    >
      <el-icon size="28" @click="$router.go(-1)" style="cursor: pointer;"><ArrowLeft /></el-icon>
      <div @click="$router.go(-1)" style="cursor: pointer;">财务管理</div>
    </h1>

    <el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
      <el-tab-pane label="医疗账单明细" name="医疗账单明细">
        <medical></medical>
      </el-tab-pane>
      <el-tab-pane label="养老账单明细" name="养老账单明细">
        <Retirement></Retirement>
      </el-tab-pane>
      <el-tab-pane label="居家账单明细" name="居家账单明细">
        <Homebased></Homebased>
      </el-tab-pane>
      <el-tab-pane label="居家医疗账单明细" name="居家医疗账单明细">
        <HomeBasedMedical></HomeBasedMedical>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>
<script lang="ts" setup>
import { ref } from 'vue'
import type { TabsPaneContext } from 'element-plus'
import medical from './medical.vue';
import Retirement from './Retirement.vue';
import Homebased from './Homebased.vue';
import HomeBasedMedical from './HomeBasedMedical.vue';

const activeName = ref('医疗账单明细')

const handleClick = (tab: TabsPaneContext, event: Event) => {
  console.log(tab.props.name, event)
}
</script>
<style>
#billDetails{
    width: 80vw;
    height: 100%;
}

.demo-tabs{
    width: 100%;
    /* font-size: 28px; */
    /* margin-top: 40px; */
}

/* .demo-tabs > .el-tabs__content {
  padding: 32px;
  color: #6b778c;
  font-size: 32px;
  font-weight: 600;
} */
</style>